<html>
<head>
<title>..::[^]::..</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="jquery-1.4.2.min.js"></script>
<script>
function load_() {
	$('#content').html("<center><img src='loading.gif' style=\"border:1px solid; position:relative; top:0px;\"><br />Đang tải...</center>").show();
	$.get('process.php',
		  {
		  id: document.getElementById('lstStory').value
		  }, function (data) {
			  $('#content').html(data).show();
		  }
	);
}
</script>
</head>
<body>
<div name="frmMain" id="frmMain">
<?
$data = file_get_contents("backup.xml"); // lấy dữ liệu từ file 
//preg_match_all('/<content:encoded>(?<match>.*)<\/content:encoded>/', $data, $content);
preg_match_all('/<title>(?<match>.*)<\/title>/', $data, $title);
//$content = $content['match'];
$title = $title['match'];
?>
<div id='lstView' style="float:left; position:fixed;">
<?
$d = count($title);
echo "<select name=\"lstStory\" size='".$d/(2.5)."' id=\"lstStory\" style=\"width:220px\">";
$i = 0;
foreach ($title as $piece) {
	echo "\r\n<option value='$i' title='$piece' onClick='load_()'>$piece</option>";
	$i++;
}
echo "</select>";
?>
<div style="width:218px; background:#CCC; color:#000; border:1px solid" align="center" onClick="alert('')">Đóng</div>
</div>
<div id='content' style="float:left; position:absolute; left:235px; right:5px; border:1px #999 solid; display:none">
</div>
</div>
</body>
</html>